//
//  TransmutationView.h
//  SecondPage
//
//  Created by xiong qi on 13-4-16.
//  Copyright (c) 2013年 winston. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "../../ResourceLoader/ResourceLoader/TemplateView.h"


@class MediaView;
@interface TransmutationView : UIScrollView<UIScrollViewDelegate,TemplateViewDelegate>
{
    NSString * RootPath;
    NSArray * contentArray;
    CGRect originRect;
    MediaView * mediaview;
    
    int currentType;//0小图模式 1中图模式 2大图模式
    TemplateView * currentMiddleView; //当前处于中图模式的视图
    BOOL isCanMove;
    int offsetfirstX;
    
    id parentView;
}

@property (nonatomic,assign)int currentType;
@property (nonatomic,assign)TemplateView * currentMiddleView;
@property (nonatomic,retain)NSArray * contentArray;
@property (nonatomic,retain)NSString * RootPath;
@property (nonatomic,assign)id parentView;;

- (id)initWithFrame:(CGRect)frame RootPath:(NSString *)path Files:(NSArray *)array;
-(void)renderTemplate;
@end
